import request from '@/utils/request'
export default {
    getNestedTreeList(courseId) {
        return request({
            url: `/eduservice/chapter/getChapterVideo/${courseId}`,
            method: 'get'
        })
    },
    getChapter(chapterId) {
        return request({
            url: `/eduservice/chapter/${chapterId}`,
            method: 'get'
        })
    },
    save(EduChapter) {
        return request({
            url: `/eduservice/chapter`,
            method: 'post',
            data:EduChapter
        })
    },
    update(EduChapter) {
        return request({
            url: `/eduservice/chapter`,
            method: 'put',
            data:EduChapter
        })
    },
    deleteChapter(id) {
        return request({
            url: `/eduservice/chapter/${id}`,
            method: 'delete',
        })
    },
}